﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SupplyChain.Domain.Entities
{
    /// <summary>
    /// 采购订单
    /// </summary>
    public class PurchaseOrder : EntityBase
    {
        /// <summary>
        /// 单据编号
        /// </summary>
        public string? OrderNumber { get; set; }

        /// <summary>
        /// 采购类别
        /// </summary>
        public string? PurchaseType { get; set; }

        /// <summary>
        /// 总金额
        /// </summary>
        public decimal? TotalAmount { get; set; }

        /// <summary>
        /// 数量合计
        /// </summary>
        public int? TotalQuantity { get; set; }

        /// <summary>
        /// 制单日期
        /// </summary>
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 制单人员
        /// </summary>
        public string? Creator { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remarks { get; set; }

        [SugarColumn(IsIgnore = true)]
        public List<PurchaseOrderDetail>? Details { get; set; }
    }
}
